package Yang.homework;

public class StaffTest {
    public static void main(String[] args) {
        try {
            Staff sf = new Staff("zhangfei",30);
            //Staff sf1 = new Staff("zhangfei",-30);
            //Staff sf1 = new Staff(null,30);
            System.out.println("sf = " + sf);
            //System.out.println("sf1 = " + sf1);
        } catch (AgeException e) {
            e.printStackTrace();
        } catch (NameException e) {
            e.printStackTrace();
        }
    }
}
